package Framework
{
	
	/**
	 * ...
	 * @author Menno
	 */
	public class EntityRegister 
	{
		private static var _entityManager:EntityManager;
		
		public function EntityRegister(entityManager:EntityManager) 
		{
			this.entityManager = entityManager;
		}
		
		public static function registerEntity(entity:BaseEntity):void
		{
			_entityManager.addEntity(entity);
		}
		
		public function get entityManager():EntityManager 
		{
			return _entityManager;
		}
		
		public function set entityManager(value:EntityManager):void 
		{
			_entityManager = value;
		}
	}
	
}